

/* root directory : replicator must fill in */
%let gdir = ;

%let sasdir = &gdir./dataSAS;
%let logdir = &gdir./logSAS;
%let codedir = &gdir./codeSAS;
%let outdir = &gdir./out;
%let indir = &gdir./toSAS;

%let tmpdir = ; /* replicator must fill in */

%let user = ; /* replicator must fill in */
%let pwd = ; /* replicator must fill in */

libname rlib "&sasdir";



%let base_yr = 2019;



/********************************
*								*
*		Load the macros			*
*								*
********************************/

%include "&codedir/unmask_tins.sas";
%include "&codedir/get_filing_status.sas";
%include "&codedir/get_deps.sas";
%include "&codedir/make_tinlist.sas";
%include "&codedir/get_itemized.sas";
%include "&codedir/get_sched_d.sas";
%include "&codedir/get_sched_e.sas";
%include "&codedir/get_f1040.sas";
%include "&codedir/get_dm1.sas";
%include "&codedir/get_w2.sas";
%include "&codedir/get_w2g.sas";
%include "&codedir/get_f1099div.sas";
%include "&codedir/get_f1099int.sas";
%include "&codedir/get_f1099g.sas";
%include "&codedir/get_f1099r.sas";
%include "&codedir/get_f1099b.sas";
%include "&codedir/get_f1099ssa.sas";
%include "&codedir/get_f1099misc.sas";
%include "&codedir/get_f1099k.sas";
%include "&codedir/get_f1120s_k1.sas";
%include "&codedir/get_f1065_k1.sas";
%include "&codedir/merge_indiv.sas";
%include "&codedir/merge_returns.sas";
%include "&codedir/do_merge.sas";
%include "&codedir/export_results.sas";
%include "&codedir/get_f1098e.sas";
%include "&codedir/get_f5498.sas";
%include "&codedir/get_nf_universe.sas";
%include "&codedir/get_nonfilers.sas";
%include "&codedir/get_filing_status_nonfiler.sas";
%include "&codedir/get_extra_deps.sas";

/********************************
*								*
*		Run the macros			*
*								*
********************************/
/********************
*	Prelimaries		*
********************/
/* this must be in this order */

%unmask_tins;
%get_nf_universe;
%get_nonfilers;
%get_filing_status_nonfiler;
%get_filing_status;

/************************
*	 Tax return items 	*	
************************/

%get_deps;
%get_itemized; 
%get_sched_d;
%get_f1040;
%get_extra_deps;



/********************************
*		Information returns		*
********************************/

%get_w2;


%get_w2g;
%get_f1099div;
%get_f1099int;
%get_f1099g;
%get_f1099r;
%get_f1099ssa;
%get_f1099b;
%get_f1065_k1;

%get_f1120s_k1;
%get_f1099misc;
%get_f1099k;

%get_f1098e;
%get_f5498;

/********************
*		Merge		*
********************/

%merge_returns;
%merge_indiv;
%do_merge;
%export_results(dname=result);
%export_results(dname=deps);

